<template>
  <div>
    <a-tag v-for="(item,index) in BedList" :key="index">
      <a v-if="BedList.length > 1 && index > 0"> {{ $t('or') }} </a>
      <span v-for="(bed,j) in item" :key="j">
          {{ bed.num }} {{ bed.type }}{{ bed.width > 0 ? "(" + bed.width + "m)" : "" }} <a
          v-if="item.length > 1 && j < item.length - 1"> {{ $t('and') }} </a>
        </span>
    </a-tag>
  </div>
</template>

<script>
export default {
  name: "RoomBeds",
  props: ['BedList'],
  i18n: require('../i18n'),
}
</script>